<?php
$this->page_breadcrumb = array(
    'System' => array('/system'),
    'Auth' => array('/system/auth/'),    
    'User');

$this->page_menu = array(     
    array(
        'title' => sterm_get('system.auth.user.index.menu.create'),
        'link' => array('/system/auth/userCreate'),
        'icon' => 'plus'
    ),
);

$grid = new application\system\library\simgrid\WidgetSimGrid("system_authUser_list");
$grid->setTitle(sterm_get('system.auth.user.index.table.title'));
$grid->setTableCss('table-condensed table-hover');
$grid->setDataSource("system", "auth", "user");
$grid->setColumns(array(
    	"user_id" => "User ID",	
	"user_name" => "Username",	
        "_state" => "Status",	
    "Actions",
));
$grid->setActions(array(
    shtml_action_link("open", array('system/auth/userView[user_id:{{user_id}}]'), array('class' => 'btn btn-default btn-xs')),
));

echo $grid->getDisplayData();
?>